import request from "@/utils/request";

// 查询资方结算列表
export function listBizCapBill(query) {
  return request({
    url: "/biz/bizCapBill/list",
    method: "get",
    params: query,
  });
}

// 查询资方结算详细
export function getBizCapBill(id) {
  return request({
    url: "/biz/bizCapBill/" + id,
    method: "get",
  });
}

// 新增资方结算
export function addBizCapBill(data) {
  return request({
    url: "/biz/bizCapBill",
    method: "post",
    data: data,
  });
}

// 修改资方结算
export function updateBizCapBill(data) {
  return request({
    url: "/biz/bizCapBill",
    method: "put",
    data: data,
  });
}

// 删除资方结算
export function delBizCapBill(id) {
  return request({
    url: "/biz/bizCapBill/" + id,
    method: "delete",
  });
}

// 查询最大编号
export function findMaxSort() {
  return request({
    url: "/biz/bizCapBill/findMaxSort",
    method: "get",
  });
}
// 导出资方结算
export function exportBizCapBill(query) {
  return request({
    url: "/biz/bizCapBill/export",
    method: "get",
    params: query,
  });
}
